package com.petalsgroup.petals.dao.Comment;

import com.petalsgroup.petals.pojo.CommentsDO;

import java.sql.Timestamp;
import java.util.List;

public interface CommentDao {
    List<CommentsDO> getAllCommentsList(Integer aid);

    CommentsDO getMyComment(Integer aid, Integer uid);

    String getAUserName(Integer uid);

    Integer getAUserComment(int aid, int uid);

    void addUserComment(int aid, int uid, String comment_content,Integer score ,Timestamp timestamp);

    void setUserComment(int aid, int uid, String comment_content,Integer score ,Timestamp timestamp);

    void updateAnimationScore(Integer aid);

    void updateAnimationPeopleNum(Integer aid);

    int findTotalCount(int aid);

    List<CommentsDO> findByPage(int aid,int start,int num);

    List<CommentsDO> findByTimePage(int aid, int start, int num);

    int deleteCommentByAid(int aid);

    Integer findUidByComId(int com_id);

    Integer findByUid(int uid, int com_id);

    void removeLikeComment(Integer uid, Integer com_id);

    void addLikeComment(Integer uid, Integer com_id);
}
